package com.xiaoxu.rental.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 *
 * @TableName auto_maker
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("auto_maker")
@ApiModel(value = "AutoMaker对象")
public class AutoMaker implements Serializable {
    /**
     * 厂商id
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 厂商名称
     */
    private String name;

    /**
     * 排序字母
     */
    private String orderLetter;

    /**
     * 是否删除 0未删除 1删除
     */
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;


}
